package graph.filters;

public class CompareWithEtalonFilter<T> implements IFilter<T, T> {

	protected T _etalon = null;
	
	public CompareWithEtalonFilter() {}
	
	public CompareWithEtalonFilter(T etalon) {
		setEtalon(etalon);
	}
	
	@Override
	public void setEtalon(T etalon) {
		_etalon = etalon;
	}
	
	@Override
	public boolean check(T node) {
		return node.equals(_etalon);
	}

}
